﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECS.DAL.Entity
{
    public class UserAuthorization : ObjectContext
    {
        #region private properties
        private string _userId = string.Empty;
        private string _process = string.Empty;
        private string _parentMenuId = string.Empty;
        private string _resourceMasterId = string.Empty;
        private string _menuText = string.Empty;
        private string _appName = string.Empty;
        private string _menuName = string.Empty;
        private bool _isActive = false;
        #endregion

        #region public properties
        
        public string Process 
        { 
            set
            {
                _process = value;
                UpdateObject();
            }
            get { return _process; }
        }
        public string ParentMenuId
        {
            set
            {
                _parentMenuId = value;
                UpdateObject();
            }
            get { return _parentMenuId; }
        }
        public string ResourceMasterId
        {
            set
            {
                _resourceMasterId = value;
                UpdateObject();
            }
            get { return _resourceMasterId; }
        }
        public string MenuText
        {
            set
            {
                _menuText = value;
                UpdateObject();
            }
            get { return _menuText; }
        }
        public string AppName
        {
            set
            {
                _appName = value;
                UpdateObject();
            }
            get { return _appName; }
        }
        public string MenuName
        {
            set
            {
                _menuName = value;
                UpdateObject();
            }
            get { return _menuName; }
        }
        public bool IsActive
        {
            set
            {
                _isActive = value;
                UpdateObject();
            }
            get { return _isActive; }
        }
        public string Status { set; get; }
        public string ErrorCode { set; get; }
        public string Message { set; get; }
        public int Locale { set; get; }


        /// <summary>
        /// application Id
        /// </summary>
        public string AppId { set; get; }
        /// <summary>
        /// Device
        /// </summary>
        public string Device { set; get; }
        /// <summary>
        /// User Id
        /// </summary>
        public string UserId { set; get; }
        /// <summary>
        /// platform
        /// </summary>
        public string Platform { set; get; }
        #endregion
    }
}
